package com.fit.dao.presenceOnClasses;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.presenceOnClasses.*;

public interface PresenceOnClassesDAO {

	@CommitAfter
	public boolean save(PresenceOnClasses newPresenceOnClasses);

	@CommitAfter
	public boolean delete(PresenceOnClasses presenceOnClasses);

	@CommitAfter
	public boolean update(PresenceOnClasses presenceOnClasses);

	public List<PresenceOnClasses> findAll();

	public PresenceOnClasses  findByIdClassAndIdStudent(int classId, int studentId);

	public PresenceOnClasses findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
